package com.demo.afternoon;

/**
 * @ClassName 线程
 * @Description TODO
 * @Author tianqinglong
 * @Date 16:41 2022/7/12
 * @Version 1.0
 **/
public class 线程 {
    public static void main(String[] args) throws InterruptedException {
        new Thread(new A()).start();
        Thread.sleep(3);
        System.out.println("bbb");
    }
}
class A implements Runnable{
    @Override
    public void run() {
        try {
            Thread.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("aaa");
    }
}
